package day03;

public class OperDemo {
    public static void main(String[] args) {


        int c =15,d=21;
        int pig =c<d?c:d;
        System.out.println(pig);
        int cat =c>d?c:d;
        System.out.println(cat);

































        /*
        int a =4;
        a += 5;//9
        a -= 7;//2
        a *= 9;//18
        a %= 2;//0
        System.out.println(a);//0
        short b =18;
        b += 15 ;//33  相当于b=(short)(18+15)
        b -= 10;//23   相当于b=(short)(33-10)
        b *= 3;//69    相当于b=(short)(23*3)
        System.out.println(b);//69



         */













































       /*
        int a =3,b=4,c =18;
        boolean a1 = b>=a && c<=b;
        System.out.println(a1);//false
        System.out.println(b>c && c<=a);//false
        System.out.println(b<=c && c<=b);//false
        System.out.println(b>=c && c==a);//false
        System.out.println(b<=c && c>=a);//true
        int Number = 188;
        System.out.println(Number>=10 && Number<=900);
        System.out.println(Number>=100 && Number<=200);
        System.out.println(Number>=190 && Number<=20);
        System.out.println(b>a || b>c);//true
        System.out.println(!(a>b));//true
        System.out.println(!(a==b));//true
        System.out.println(!(c>a));//false


        */








































   /*
    int a =12,b =15,c = 18;
         boolean b2 = a>=c;
        System.out.println(b2);//false
        System.out.println(a<b);//true
        System.out.println(a==c);//false
        System.out.println(a++<b);//true
        System.out.println(--a<b);//true
        System.out.println(--b<c);//true

    */







































































        /*
        int a =7,b=8;
        int c =a++;
        int d =++b;
        System.out.println(c);//7
        System.out.println(d);//9
        System.out.println(c++);//7
        System.out.println(++d);//10
        int f =6,e =4;
        int y =f--;
        int z =--e;
        System.out.println(y);//6
        System.out.println(f);//5
        System.out.println(e);//3
        System.out.println(z);//3

         */

         }
}
